package com.sys.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.dto.sys.EmployeeDto;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

/**
 * @author xufan
 */
public interface EmployeeMapper extends BaseMapper {
    /**
     * @author: xufan
     * @Date: 2021/7/20
     * @Description: 分页获取员工列表
     */
    IPage<Map> listPageEmployee(@Param("employeeDto") EmployeeDto employeeDto, Page<Map<String, Object>> pageObject);

    /**
     * @author: xufan
     * @Date: 2021/7/20
     * @Description: 根据员工id查询员工信息
     */
    Map<String, Object> getEmployeeById(@Param("employeeDto") EmployeeDto employeeDto);

    /**
     * @author: xufan
     * @Date: 2021/7/23
     * @Description: 添加员工
     */
    int saveEmployee(@Param("employeeDto") EmployeeDto employeeDto);
}
